<template>
  <div class="demo-rate">
    <div class="icon-item">
      <p class="icon-label">Custom Icon Example 1</p>
      <t-rate
        v-model="value1"
        :icon="{
          empty: 'setting',
          half: 'user',
          show: 'message'
        }"
      />
    </div>

    <div class="icon-item">
      <p class="icon-label">Custom Icon Example 2</p>
      <t-rate
        v-model="value2"
        :icon="{
          empty: 'document',
          half: 'calendar',
          show: 'cloud'
        }"
      />
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";

const value1 = ref(2.5);
const value2 = ref(3);
</script>

<style scoped>
.demo-rate {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icon-item {
  margin-bottom: 16px;
}

.icon-label {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
}
</style>
